#!/bin/sh

AppName=tulgey

g++ main.cpp \
    atto.cpp \
    atto_internals.cpp \
    GameSystem.cpp \
    ../src/Slots.cpp ../src/System.cpp ../src/Assembler.cpp ../src/Compiler.cpp ../src/Messages.cpp \
    ../src/Collector.cpp ../src/Instructions.cpp ../src/Objects.cpp \
    ../src/Common.cpp ../src/Lexer.cpp ../src/VM.cpp \
    -I../src \
    -Wall -lm -lstdc++ `fltk-config --ldflags --use-images` -o ${AppName}

if [ `uname -s` = "Darwin" ] ; then
	echo "Adding OSX resources..."
	./mac.sh ./${AppName}
fi

